<?php

class Client extends CActiveRecord
{
	public function rules()
	{
		return array(
			array('name', 'length', 'max' => 50, 'message' => 'Ведите значение "{attribute}".'),
		);
	}

	public function attributeLabels()
	{
		return array(
			'name' => 'Имя',
		);
	}

	public function relations()
	{
		return array();
	}

	public static function model($className = __CLASS__)
	{
		return parent::model($className);
	}

	public function tableName()
	{
		return '{{client}}';
	}	
}